/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.base.db.dao;

import com.yunhoo.base.model.Organization;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Administrator
 */
public interface OrganizationDao {

    public void insert(Organization org) throws SQLException;

    public void update(Organization org) throws SQLException;

    public void updateIsEnd(Organization org) throws SQLException;

    public void delete(Organization org) throws SQLException;

    public void deleteById(String orgCode) throws SQLException;

    public Organization queryById(String orgCode) throws SQLException;

    public Organization nameRepeatForInsert(Organization org) throws SQLException;

    public Organization nameRepeatForUpdate(Organization org) throws SQLException;

    public List<Organization> queryAll() throws SQLException;

    public List<Organization> directSubNodes(Organization org) throws SQLException;
}
